package com.permission_server;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.core.env.Environment;

@SpringBootApplication
public class PermissionServerApplication {

    public static void main(String[] args) {
        //SpringApplication.run(PermissionServerApplication.class, args);
        SpringApplication app = new SpringApplication(PermissionServerApplication.class);
        Environment env = app.run(args).getEnvironment();
        System.out.println("Swagger Ul: \t\thttp://localhost:" + env.getProperty("server.port").concat("/swagger-ui.html"));
    }

}
